package com.brayan.webapp.model.realestate;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

/**
 * Entity implementation class for Entity: GTC
 *
 */
@Entity
public class GTC implements Serializable {

	
	private static final long serialVersionUID = 1L;

	public GTC() {
		super();
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	@Column
	private String version;
	
	@Column
	@NotNull
	private Date startOfValidity;
	
	@Column
	private Date endOfValidity;
	
	@Column
	@NotNull
	private String termsText;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Date getStartOfValidity() {
		return startOfValidity;
	}

	public void setStartOfValidity(Date startOfValidity) {
		this.startOfValidity = startOfValidity;
	}

	public Date getEndOfValidity() {
		return endOfValidity;
	}

	public void setEndOfValidity(Date endOfValidity) {
		this.endOfValidity = endOfValidity;
	}

	public String getTermsText() {
		return termsText;
	}

	public void setTermsText(String termsText) {
		this.termsText = termsText;
	}

	public Long getId() {
		return id;
	}
   
}
